package com.guigu.youxuan.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.guigu.youxuan.mapper.GoodsCommentMapper;
import com.guigu.youxuan.pojo.GoodsComment;
import com.guigu.youxuan.pojo.dto.GoodsCommentDto;
import com.guigu.youxuan.service.IGoodsCommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author liweixin
 * @since 2024-05-15
 */
@Service
public class GoodsCommentServiceImpl extends ServiceImpl<GoodsCommentMapper, GoodsComment> implements IGoodsCommentService {
    @Autowired
    private GoodsCommentMapper goodsCommentMapper;

    @Override
    public List<GoodsCommentDto> selGoodsCommentById(int id) {
        List<GoodsCommentDto> commentById = goodsCommentMapper.selGoodsCommentById(id);
        return commentById;
    }
}
